package study.linkedlist;

public class Node2 {
    public int id;
    public Object data;
    public Node2 next;  //指向下一节点
    public Node2 pre;   //指向上一节点


    public Node2(int id, Object data) {
        this.id = id;
        this.data = data;
    }

    @Override
    public String toString() {
        return "Node{" +
                "id=" + id +
                ", data=" + data +
                '}';
    }
}
